package com.project.controller;

import com.project.bean.CityBean;
import com.project.service.ICityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author lyl
 * description:
 */
@RestController
@RequestMapping("city")
public class CityController {
    @Autowired
    private ICityService iCityService;

    @RequestMapping("findByCountryId")
    public List<CityBean> findByCountryId(int countryId) {
        return iCityService.findByCountryId(countryId);
    }


}
